package com.itcast.mapper;

import com.itcast.pojo.Shoppingcart;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Repository
@Mapper
public interface ShoppingcartMapper extends BaseMapper<Shoppingcart> {

    Shoppingcart getCart(@Param("gid") Integer gid, @Param("uId") int uId);

    List<Shoppingcart> getCartList(Integer uId);

    List<Shoppingcart> getListBayIndex(int i);

    List<Shoppingcart> selectShoppinglike(int uid);

    int dels(@Param("idss")String idss);
}
